#ifndef _MAINFORM_H_
#define _MAINFORM_H_

#include <FBase.h>
#include <FUi.h>
#include <FXml.h>

class MainForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	MainForm(void);
	virtual ~MainForm(void);
	bool Initialize(void);

// Implementation
protected:
	static const int ID_BUTTON_GO = 101;
	Osp::Ui::Controls::Button *__pButtonGo;
	Osp::Ui::Controls::List *__pMyList;

	// a szukseges valtozok: egy dokumentum, a kontextus es a ket lekerdezes
	Osp::Xml::xmlDoc * doc;
	Osp::Xml::xmlXPathContextPtr xpathContext;
	Osp::Xml::xmlXPathObjectPtr xpathObjKeszulek;
	Osp::Xml::xmlXPathObjectPtr xpathObjAr;

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	void ParseAndWrite();
};

#endif	//_MAINFORM_H_
